<template>
  <button @click="toparent">自住兼</button>
</template>

<script setup>
import { defineEmits } from 'vue'

const emit = defineEmits(['getmsg'])

function toparent(){
  emit('getmsg',10086)
}
</script>